
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta content="" charset="utf-8">
<link rel="stylesheet" type="text/css" href="JTrac_files/layout.css">
<title>Set answer page</title>
</head>
<body>
	<div id="wrapper">
		<%@include file="template.jsp"%>
		<div id="insert_qs">
			<div class="title_qs"></div>
			<div class="inputAnswer">
				<s:form action="insertAnswersAction">
				
				   <table width="635" border="1" cellpadding="0" cellspacing="0">
					<tr bgcolor="#483D8B">
						<td align="center" style="color: white;">Answers</td>
						<td align="center" style="color: white;">Type of answer</td>
					</tr>
						<s:iterator value="listAnswerSupply">
							<tr bgcolor="#696969" >
								<td align="center">
								   <s:property /> 
								</td>
								<td align="center">
								   <s:property value="typeOfAnswer"/> 
								</td>								
							</tr>
						</s:iterator>
					</table>
				    <s:hidden name="questionIdBean" value="%{questionId}"  />
		            <s:textarea name="answer" key="Answer : " cols="30" ></s:textarea>
					<s:select name="typeAnswer"  
		headerKey="-1" headerValue="--Select--" list="{'0','1'}" label="type_answer"></s:select>
					<s:submit label="save" />
				</s:form>
				
			</div>
		</div>
		<%@include file="bottom.jsp"%>
	</div>
</body>
</html>